<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        width: 160px;
        height: 272px;
        margin: 200px auto;
        border: 5px solid #999;
        background-image: url(./img/test.jpg);
        background-position: 0 0;
        animation: DH 1s steps(8) infinite reverse;
        /* transform: translateX(1280px); */
      }
      @keyframes DH {
        from {
          background-position: 0 0;
        }
        to {
          background-position: 1280px 0;
        }
      }
      /* @keyframes DH {
        0% {
          background-position: 0 0;
        }
        12.5% {
          background-position: 160px 0;
        }
        25% {
          background-position: 320px 0;
        }
        37.5% {
          background-position: 480px 0;
        }
        50% {
          background-position: 640px 0;
        }
        62.5% {
          background-position: 800px 0;
        }
        75% {
          background-position: 960px 0;
        }
        87.5% {
          background-position: 1120px 0;
        }
        100% {
          background-position: 1280px 0;
        }
      } */
    </style>
  </head>
  <body>
    <div></div>
  </body>
</html>
